import Mock from 'mockjs';
Mock.setup({
    timeout:'200-600'
})

const tags = [
    'JavaScript',
    'React',
    '算法',
    'JS手写',
    '计算机网络',
    'HTTP',
    '课内文章',
    'Nginx',
    '面试',
]

Mock.mock('http://81.68.131.25/api/management/home/getBasicInfo',{
    "articleNum":'@integer(0,300)',
    "messageNum":'@integer(0,100)',
    "visitNum":'@integer(0,2000)',
    "chartMessage":[
        {tagName:tags[0],count:'@integer(0,100)',},
        {tagName:tags[1],count:'@integer(0,100)',},
        {tagName:tags[2],count:'@integer(0,100)',},
        {tagName:tags[3],count:'@integer(0,100)',},
        {tagName:tags[4],count:'@integer(0,100)',},
        {tagName:tags[5],count:'@integer(0,100)',}
    ],
    "tags":tags
})